#include "ioport.h"

void outB(unsigned short port, unsigned char daten)
{
	asm("outb %0, %1" : : "a" (daten), "d"(port));
}

void outW(unsigned short port, unsigned short daten)
{
	asm("outw %0, %1" : : "a" (daten), "d"(port));
}

unsigned char inB(unsigned short port)
{
	unsigned char e;
	asm("inb %1, %0" : "=a" (e) : "d" (port));
	return e;
}

unsigned short inW(unsigned short port)
{
	unsigned short e;
	asm("inw %1, %0" : "=a" (e) : "d" (port));
	return e;
}
